package com.medassistent.util;

public class FormataCampos {
	
	public static String AdicionaZero(int number){
		String numberFormatado = String.valueOf(number);
		if (number < 10) {
			numberFormatado = "0"+String.valueOf(number);
		}
		
		return numberFormatado;
	}
	
	public static String AdicionaZero(String character){
		String numberFormatado = character;
		if (Integer.parseInt(character) < 10) {
			numberFormatado = "0"+character;
		}
		
		return numberFormatado;
	}
	

}
